<?php


namespace app\index\controller;


use think\Controller;
use think\Db;

class Index extends Controller
{
    public function index()
    {
        return view();
    }

    /**
     * use   获取测试数据
     * user  Hugh
     * date  2021/6/25 13:58
     */
    public function getData()
    {
        $data = Db::name('s_role')
              ->select();
        sleep(5);
        return success($data);
    }
}